<template>
    <div>
        <UBasePage :options="optionsFlowConfig"></UBasePage>
    </div>
</template>

<script setup lang="ts">

const optionsFlowConfig ={
    rowKey: 'id', // 表格唯一id
    dialog: {
        width: 700,
        labelWidth: 120,
    },
    isSearch:false,
    inlineBtn: [
        {
            label: '修改',
            uniqueKey: 'modify',
            type: 'primary',
            link: true,
            icon: 'Edit',
            disabledFormItem: ['processIndex'],
        },
        {
            label: '删除',
            uniqueKey: 'remove',
            type: 'danger',
            link: true,
            icon: 'Delete',
        },
    ],
    operateBtn: [
        {
            label: '创建流程',
            uniqueKey: 'create',
            type: 'primary',
            icon: 'Plus',
            permissions: ['closeAccount:flow:create'],
        },
    ],
    request: {
        // 请求参数
        list: {
            apiFunc: 'listPageFunc',
        },
    },
    propMapToTime: [['processName1', ['startTime', 'endTime'], 'YYYY-MM']],
    schema: [
        {
            label: '关账流程标识',
            prop: 'processIndex',
            isLink: true,
            to: '/closeAccount/configure-task/index/$[id]',
            rules: [{ required: true, message: '关账流程标识', trigger: ['blur', 'change'] }],
        },
        {
            label: '关账流程名称',
            prop: 'processName',
            rules: [{ required: true, message: '关账流程名称', trigger: ['blur', 'change'] }],
        },
        {
            label: '流程业务类型',
            prop: 'busiType',
            search: true,
            type: 'Select',
           // option: dict['busi_type'],
            isDictType: true,
            rules: [{ required: true, message: '流程业务类型', trigger: ['blur', 'change'] }],
        },
        {
            label: '流程所属机构',
            prop: 'comCode',
            search: true,
            type: 'Select',
           // option: dict['com_code'],
            isDictType: true,
            rules: [{ required: true, message: '流程所属机构', trigger: ['blur', 'change'] }],
        },
        {
            label: '关账频度',
            prop: 'frequency',
            type: 'Select',
          //  option: dict['frequency'],
            isDictType: true,
            rules: [{ required: true, message: '关账频度', trigger: ['blur', 'change'] }],
        },
        {
            prop: '_operate_',
            width: 150,
            label: '操作',
        },
    ],
};
</script>
